#ifndef COM_H__
#define COM_H__

#include "StdTypes.h"
#include "FreeRTOS.h"
#include "queue.h"



#define COM_MSGLENGTH         12



/*************** TIPEDEFS ********************/
typedef struct {
	uint8 data[COM_MSGLENGTH];
	uint8 len;
	uint8 id;
} Com_Message_t;


/******* COM RX *******/
void Com_Rx_Ini(void);
extern xQueueHandle Com_RxMessageQueue;


/******* COM TX *******/
void Com_Tx_Ini(void);
ret_t Com_Tx_SendMessage(uint8 id, uint8 len, uint8* data);
extern xQueueHandle Com_TxMessageQueue;


/******* COM **********/
#define Com_Ini() {Com_Tx_Ini();Com_Rx_Ini();}
#define Com_MainFunction()


#endif
